package br.ufmg.dcc.vod.remoteworkers.processor.ui;

import java.util.concurrent.TimeUnit;

import br.edu.ufcg.lsd.commune.container.ContainerContext;
import br.edu.ufcg.lsd.commune.container.control.ApplicationServerManager;
import br.edu.ufcg.lsd.commune.container.servicemanager.client.InitializationContext;
import br.edu.ufcg.lsd.commune.container.servicemanager.client.sync.SyncApplicationClient;
import br.edu.ufcg.lsd.commune.container.servicemanager.client.sync.SyncManagerClient;
import br.edu.ufcg.lsd.commune.container.servicemanager.client.sync.UnableToContactServiceException;
import br.edu.ufcg.lsd.commune.network.xmpp.CommuneNetworkException;
import br.edu.ufcg.lsd.commune.processor.ProcessorStartException;

public class ProcessorUI extends SyncApplicationClient<ApplicationServerManager, SyncManagerClient<ApplicationServerManager>> {

	public static final String UI_SERVICE_NAME = "PROCESSOR_UI_SERVICE";

	public ProcessorUI(ContainerContext context, long timeout, TimeUnit unit) throws CommuneNetworkException, ProcessorStartException, UnableToContactServiceException {
		super(UI_SERVICE_NAME, context, timeout, unit);
	}

	@Override
	protected InitializationContext<ApplicationServerManager, SyncManagerClient<ApplicationServerManager>> createInitializationContext() {
		return new ProcessorInitializationContext();
	}

}
